<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Event
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 * @version    $Id: Create.php 7479 2010-09-25 10:24:26Z john $
 * @author     John
 */

/**
 * @category   Application_Extensions
 * @package    Event
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 */
class Event_Form_Post_Create extends Engine_Form {
	public function init() {
		$this->setTitle ( 'Reply' )->setAction ( Zend_Controller_Front::getInstance ()->getRouter ()->assemble ( array ('action' => 'post', 'controller' => 'topic' ), 'event_extended', true ) );
		
		$this->addElement ( 'Textarea', 'body', array ('label' => 'Body', 'allowEmpty' => false, 'required' => true, 'filters' => array (new Engine_Filter_HtmlSpecialChars (), new Engine_Filter_Censor () )//new Engine_Filter_EnableLinks(),
		 ) );
		
		$this->addElement ( 'Checkbox', 'watch', array ('label' => 'Send me notifications when other members reply to this topic.', 'value' => '1' ) );
		
		$this->addElement ( 'Button', 'submit', array ('label' => 'Post Reply', 'ignore' => true, 'type' => 'submit' ) );
		
		$this->addElement ( 'Hidden', 'topic_id', array ('order' => '920', 'filters' => array ('Int' ) ) );
		
		$this->addElement ( 'Hidden', 'ref' );
	}
}